package base.generics;

public class TestMain2 <T,U>{
    private T t;
    private U u;

    public TestMain2(T t, U u) {
        this.t = t;
        this.u = u;
    }
    public T getT(){
        return t;
    }
    public U getU(){
        return u;
    }

    public static void main(String[] args) {
        Person person=new Person(20,"zhangshan");
        User user=new User(30,"lisi");
        TestMain2<Person,User> test2=new TestMain2<>(person,user);
    }
}
